package OOP.day09.homework.AnimalDemo03;

public class Dog extends Animal implements Swim{
    //构造方法
    public Dog() {
    }

    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    //行为
    public void lookHome() {
        System.out.println("看家");
    }
    //重写eat方法
    @Override
    public void eat() {
        System.out.println("狗吃骨头");
    }

    @Override
    public void swim() {
        System.out.println("狗刨水");
    }

}
